#!/bin/bash

a=(123 456.234 "hello world" "$(wc -l /etc/passwd)")

a[2]='kyo'

# echo ${a[0]}
# echo ${a[1]}
# echo ${a[2]}
# echo ${a[3]}

b[3]=33333
b[8]=88888

echo "a count = "${#a[*]}
echo "b count = "${#b[*]}

echo "a = "${a[*]}
echo "b = "${b[@]}

c=(${a[*]})

for i in ${a[*]}
do
    echo "b: "$i
done

for i in $(seq 0 3)
do
    echo "a: "${a[$i]}
    echo "c: "${c[$i]}
done
